﻿/// <reference path="BaseTemplateMapping.js" />

var $LevelMapping = TA.Turbo.Controls.LevelMapping = function LevelMapping()
{
}
$LevelMapping.Inherit($BaseTemplateMapping);

var ____a;
if (____a)
{
	$LevelMapping.prototype = new $BaseTemplateMapping();
	$LevelMapping.prototype.BaseTemplateMapping = new $BaseTemplateMapping();
}

$LevelMapping.prototype.Level = null;

$LevelMapping.prototype.get_Weight = function get_Weight()
{
	return 1000;
}

$LevelMapping.prototype.GetTemplate = function GetTemplate(treeView, level)
{
	if (this.Level == level)
	{
	return treeView.GetTemplateBy
	}
}

$LevelMapping.prototype.SerializeContents = function SerializeContents(jw)
{
	this.BaseTemplateMapping.SerializeContents.call(this, jw);

	if (this.Level != null)
	{
		jw.Property("L", this.Level);
	}
}
$LevelMapping.prototype.DeserializeContent = function DeserializeContent(propName, value)
{
	switch (propName)
	{
		case "L": this.Level = value; break;
		default: this.BaseTemplateMapping.DeserializeContent.call(this, propName, value); break;
	}
}